<?php
/**
{
    "teacherJobId": "INT //工作经历id",
    "teacherId": "INT //老师id@foreign::tbl_teacher; @search; ",
    "startTime": "VARCHAR //开始时间",
    "endTime": "VARCHAR //结束时间",
    "schoolName": "VARCHAR //学校名@search; ",
    "occupy": "VARCHAR //职位@search; ",
    "summary": "TEXT //工作简介@search; ",
    "achievement": "TEXT //主要业绩@search; "
}
 */

class TeacherJob extends Base
{
    
	private $teacherJobId= '';//工作经历id
	private $teacherId= '';//老师id@foreign::tbl_teacher;@search;
	private $startTime= NULL;//开始时间
	private $endTime= NULL;//结束时间
	private $schoolName= NULL;//学校名@search;
	private $occupy= NULL;//职位@search;
	private $summary= '';//工作简介@search;
	private $achievement= '';//主要业绩@search;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_teacher_job';
    }
    
    public  function key(){
        return 'teacherJobId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return [];
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'TeacherJob';
    }
    
    public  function field()
    {
        return array (  'teacherJobId' =>   array (    0 => 'INT',    1 => 11,    2 => '工作经历id',  ),  'teacherId' =>   array (    0 => 'INT',    1 => 11,    2 => '老师id@foreign::tbl_teacher;@search;',  ),  'startTime' =>   array (    0 => 'VARCHAR',    1 => 20,    2 => '开始时间',  ),  'endTime' =>   array (    0 => 'VARCHAR',    1 => 20,    2 => '结束时间',  ),  'schoolName' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '学校名@search;',  ),  'occupy' =>   array (    0 => 'VARCHAR',    1 => 60,    2 => '职位@search;',  ),  'summary' =>   array (    0 => 'TEXT',    1 => 0,    2 => '工作简介@search;',  ),  'achievement' =>   array (    0 => 'TEXT',    1 => 0,    2 => '主要业绩@search;',  ),);
    }


}